SG Window
Item Property

©1998 by Stinga

See Also     Properties     Events     Constants     Error Codes     How To...     FAQ
Description

Returns Window object based on the specified key. Default, read only.

Syntax

object.Item(key)

The Item property has the following parts:

Part Description
object object expression that evaluates to the Windows collection
key key associated with the Window being retrieved
Remarks

Key can be Integer or String. If it is Integer than it is zero based index of the item in the collection. If key is String than it's syntax is as folows:

"Caption" specifies window with 'Caption' as window text
"{ID}100" specifies window with ID equal to 100
"{HWND}100" specifies window with HWND equal to decimal 100
"{HWND}&H100" specifies window with HWND equal to hexadecimal 100
Example
Dim w
set w = CreateObject("SGWindow.Window")
w.AttachDesktop
MsgBox "Class name of the first desktop's child is " & w.Children(0).Class